package com.mes.cloud.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @Description TODO
 * @author: wxm
 * @date: 2020/1/14 14:45
 * @version: 1.0
 */
@Data
@ApiModel("用户登录实体")
public class LoginParamRequest {
    @ApiModelProperty(value = "clientId", required = true)
    private String clientId;

    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "登录终端", required = false)
    private String mobiletype;

    @ApiModelProperty(value = "登录地址", required = false)
    private String address;
}